window.onscroll=function(){ 
    var t=document.documentElement.scrollTop||document.body.scrollTop;  
    var div2=document.getElementById("menu"); 
    if(t>= 100){ 
        div2.className = "menu_1";
    }else{
        div2.className = "menu";
    } 
}
jQuery(function($){
	                $("ul>li>a").click(function(){
	                    $(this).next("ul").toggle().closest("li").siblings("li").children("ul").hide();
	                }).next("ul").hide();
	            });